﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DunLibrary.Core;
using DunLibrary.Base;

namespace DunLibrary.CreditCard
{
    public class Cardholder:Person,ICardholder
    {
        public virtual string DisplayNumber
        {
            get
            {
                if (Number.Length > 9)
                    return Number.Substring(0, 5) + "****" + Number.Substring(9);
                return Number;
            }
        }

        public  virtual IList<CreditCard> Cards { get; set; }
    }
}
